package com.online_exam.service;

import com.online_exam.base.UserType;
import com.online_exam.domain.User;
import com.online_exam.domain.other.KeyValue;

import javax.servlet.http.Cookie;
import java.util.List;
import java.util.Map;

public interface UserService {
    User selectByUsernamePassword(String username,String password);
    int InsertUser(User user);
    User selectByUsername(String userName);
    int update(User user);

    User getCurrent(UserType userType, Cookie[] cookies);
    public User findByUserId(Integer id);
    public List<KeyValue> findByUserName(String username);

}
